package sgi.message;

import java.util.List;

import sgi.details_new.MessageDetails;
/** message of retrieving messages of specific username and reviewing in his message table */
@SuppressWarnings("serial")
public class MessageViewMessages extends Message {
	private String UserName;
	private List<MessageDetails> messages;
	
	public MessageViewMessages(String UserName) {
		super("select * from messages where username='"+ UserName + "'");	
		setUserName(UserName);
	}

	public List<MessageDetails> getMessages() {
		return messages;
	}

	public void setMessages(List<MessageDetails> messages) {
		this.messages = messages;
	}

	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}

}
